Skip to content

fix: leader election manager init when not using config overrider #1636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

nicoloboschi
Copy link
Contributor

If you create an Operator instance without using the overrider to set the leader election config, the configuration singleton is set twice leading to a ISE.

The method LeaderElectionManager#init relies on the singleton config but the config is not set yet at that moment.

Note that I found out this issue by using Quarkus Operator SDK 5.0.2.Beta

Copy link
Collaborator

@csviri csviri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thx

@csviri csviri merged commit e68b9e0 into operator-framework:main Nov 30, 2022
@nicoloboschi nicoloboschi deleted the fix-leader-election-init branch November 30, 2022 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants